# Contributor: Minecrell <minecrell@minecrell.net>
# Maintainer: Minecrell <minecrell@minecrell.net>
pkgname=tinyalsa
pkgver=1.1.1_git20200424
_commit=6ef70e16da9c83db73861561d32830f6448db55d
pkgrel=0
pkgdesc="Tiny library to interface with ALSA in the Linux kernel"
url="https://github.com/tinyalsa/tinyalsa"
arch="all"
license="BSD-3-Clause"
makedepends="bash linux-headers doxygen graphviz"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc $pkgname-libs"
source="$pkgname-$_commit.tar.gz::https://github.com/tinyalsa/tinyalsa/archive/$_commit.tar.gz"
options="!check" # no tests
builddir="$srcdir/$pkgname-$_commit"

build() {
	make
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="fdd11de6dda8e4bc4bde8a811944dba6e4e424ee70151afa6c260d8c087fae7c9e9dfb9fd9c4b0ca367abb94b95192ee4fe6b0d5028dabbdbec80de116725596  tinyalsa-6ef70e16da9c83db73861561d32830f6448db55d.tar.gz"
